import request from '@/utils/request';

// 探针模块配置管理

// 查询探针模块配置管理列表
export function queryProbeModuleList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/queryProbeModuleList',
		method: 'post',
		data: data,
	});
}

// 新增探针模块配置管理
export function addProbeModule(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/addProbeModule',
		method: 'post',
		data: data,
	});
}

// 修改探针模块配置管理
export function editProbeModule(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/editProbeModule',
		method: 'post',
		data: data,
	});
}

// 复制探针模块配置管理
export function copyProbeModule(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/copyProbeModule',
		method: 'post',
		data: data,
	});
}

// 批量删除
export function deleteProbeModuleByIds(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/deleteProbeModuleByIds/' + ids,
		method: 'get',
	});
}

//根据Id查询探针模块配置管理
export function queryProbeModuleById(id: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/' + id,
		method: 'get',
	});
}

export function queryProbeConfigDetails(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/probeConfig/getConfigDetailByIp/' + data,
		method: 'get',
	});
}

// 更新探针配置信息
export function updateProbeConfigDetails(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/moduleManagement/updateProbeConfigDetails',
		method: 'post',
		data: data,
	});
}
